# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

    def forwards(self, orm):
        # Deleting field 'Sector.cantidadButacas'
        db.delete_column('festivalrock_sector', 'cantidadButacas')

        # Deleting field 'Sector.cantidadFilas'
        db.delete_column('festivalrock_sector', 'cantidadFilas')


    def backwards(self, orm):
        # Adding field 'Sector.cantidadButacas'
        db.add_column('festivalrock_sector', 'cantidadButacas',
                      self.gf('django.db.models.fields.IntegerField')(default=0),
                      keep_default=False)

        # Adding field 'Sector.cantidadFilas'
        db.add_column('festivalrock_sector', 'cantidadFilas',
                      self.gf('django.db.models.fields.IntegerField')(default=0),
                      keep_default=False)


    models = {
        'auth.group': {
            'Meta': {'object_name': 'Group'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
        },
        'auth.permission': {
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
        },
        'auth.user': {
            'Meta': {'object_name': 'User'},
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
        },
        'contenttypes.contenttype': {
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
        },
        'festivalrock.banda': {
            'Meta': {'object_name': 'Banda'},
            'categoria': ('django.db.models.fields.IntegerField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'nombre': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '50'})
        },
        'festivalrock.butaca': {
            'Meta': {'object_name': 'Butaca'},
            'estado': ('django.db.models.fields.CharField', [], {'default': "'disponible'", 'max_length': '200'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'numero': ('django.db.models.fields.IntegerField', [], {})
        },
        'festivalrock.centrodeventa': {
            'Meta': {'object_name': 'CentroDeVenta'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'nombre': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
            'puntosDeVenta': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['festivalrock.PuntoVenta']"})
        },
        'festivalrock.descuento': {
            'Meta': {'object_name': 'Descuento'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'nombre': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
            'porcentaje': ('django.db.models.fields.DecimalField', [], {'max_digits': '4', 'decimal_places': '2'})
        },
        'festivalrock.descuentoanticipada': {
            'Meta': {'object_name': 'DescuentoAnticipada', '_ormbases': ['festivalrock.Descuento']},
            'descuento_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['festivalrock.Descuento']", 'unique': 'True', 'primary_key': 'True'}),
            'diasAnticipados': ('django.db.models.fields.IntegerField', [], {}),
            'presentacion': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['festivalrock.Presentacion']"})
        },
        'festivalrock.entrada': {
            'Meta': {'object_name': 'Entrada'},
            'codigoBarra': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
            'descuento': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['festivalrock.Descuento']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'porcentajeDescuento': ('django.db.models.fields.DecimalField', [], {'max_digits': '4', 'decimal_places': '2'}),
            'presentacion': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['festivalrock.Presentacion']"})
        },
        'festivalrock.entradajubilados': {
            'Meta': {'object_name': 'EntradaJubilados', '_ormbases': ['festivalrock.Entrada']},
            'entrada_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['festivalrock.Entrada']", 'unique': 'True', 'primary_key': 'True'})
        },
        'festivalrock.entradamayores': {
            'Meta': {'object_name': 'EntradaMayores', '_ormbases': ['festivalrock.Entrada']},
            'entrada_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['festivalrock.Entrada']", 'unique': 'True', 'primary_key': 'True'})
        },
        'festivalrock.entradamenores': {
            'Meta': {'object_name': 'EntradaMenores', '_ormbases': ['festivalrock.Entrada']},
            'entrada_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['festivalrock.Entrada']", 'unique': 'True', 'primary_key': 'True'})
        },
        'festivalrock.festival': {
            'Meta': {'object_name': 'Festival'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'noches': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['festivalrock.Noche']"}),
            'nombre': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '50'})
        },
        'festivalrock.fila': {
            'Meta': {'object_name': 'Fila'},
            'butacas': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['festivalrock.Butaca']", 'symmetrical': 'False'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'numero': ('django.db.models.fields.IntegerField', [], {})
        },
        'festivalrock.noche': {
            'Meta': {'object_name': 'Noche'},
            'fecha': ('django.db.models.fields.DateField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'nombre': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
            'presentaciones': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['festivalrock.Presentacion']", 'symmetrical': 'False'}),
            'sectores': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['festivalrock.Sector']", 'symmetrical': 'False'})
        },
        'festivalrock.presentacion': {
            'Meta': {'object_name': 'Presentacion'},
            'banda': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['festivalrock.Banda']"}),
            'horaFin': ('django.db.models.fields.TimeField', [], {}),
            'horaInicio': ('django.db.models.fields.TimeField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
        },
        'festivalrock.puntoventa': {
            'Meta': {'object_name': 'PuntoVenta'},
            'festivales': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['festivalrock.Festival']", 'symmetrical': 'False'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'nombre': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
            'vendedor': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['festivalrock.Vendedor']", 'symmetrical': 'False'})
        },
        'festivalrock.sector': {
            'Meta': {'object_name': 'Sector'},
            'color': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
            'filas': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['festivalrock.Fila']", 'symmetrical': 'False'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'importeEntradaBase': ('festivalrock.utils.CurrencyField', [], {'blank': 'True'}),
            'nombre': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20'}),
            'presentacion': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['festivalrock.Presentacion']"})
        },
        'festivalrock.vendedor': {
            'Meta': {'object_name': 'Vendedor'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'nombre': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
            'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True'})
        },
        'festivalrock.venta': {
            'Meta': {'object_name': 'Venta'},
            'butaca': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['festivalrock.Butaca']", 'unique': 'True'}),
            'entradas': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['festivalrock.Entrada']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'vendedor': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['festivalrock.Vendedor']", 'unique': 'True'})
        }
    }

    complete_apps = ['festivalrock']